﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DCT.Model
{
    public class MiscellaneousDeviceModel : DeviceBaseModel
    {
        public MiscellaneousDeviceModel()
            : base()
        {
            _mdDevice = new MiscellaneousDevice();
        }

        public MiscellaneousDeviceModel(MiscellaneousDevice md, Device device)
            : base(device)
        {
            _mdDevice = md;
        }

        MiscellaneousDevice _mdDevice;

        public MiscellaneousDevice MD
        {
            get
            {
                return _mdDevice;
            }
        }

        public override int DeviceID
        {
            get
            {
                return _mdDevice.DeviceID;
            }
            set
            {
                _mdDevice.DeviceID = value;
                _device.DeviceID = value;
            }
        }

        #region Properties

        public string MDSubType
        {
            get
            {
                return _mdDevice.MDSubType;
            }
            set
            {
                _mdDevice.MDSubType = value;
            }
        }

        #endregion // Properties
    }
}
